//
//  YinglongliangfencaiVC.m
//  SSC
//
//  Created by 红沙尘 on 2017/9/4.
//  Copyright © 2017年 红沙尘. All rights reserved.
//

#import "YinglongliangfencaiVC.h"
#import "AppDelegate.h"
@interface YinglongliangfencaiVC ()

@end

@implementation YinglongliangfencaiVC

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    return [super initWithNibName:NSStringFromClass([self.superclass class]) bundle:nibBundleOrNil];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.otype = CaipiaoTypeFenfencai;
    
    AppDelegate *app = (AppDelegate *)[UIApplication sharedApplication].delegate;
    app.otype = self.otype;
    
    UIButton *leftBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 90, 44)];
    [leftBtn setTitle:@"〈 两分彩" forState:UIControlStateNormal];
    leftBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
    leftBtn.titleLabel.font = [MTool fontOfSize:14];
    [leftBtn addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchUpInside];
    
    self.navigationItem.leftBarButtonItem = CUSTOMVIEW(leftBtn);
}

- (void)back {
    [self.navigationController popViewControllerAnimated:YES];
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
